﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;



//// fetch data in myCustomer entity. (a graph). 
//// BinaryFormatter is the formatter for remoting, part of .NET
//BinaryFormatter formatter = new BinaryFormatter();
//MemoryStream stream = new MemoryStream();
//formatter.Serialize(stream , myCustomer);
//// seek the stream back to the beginning.
//stream .Seek(0, SeekOrigin.Begin);

//// deserialize the data back into a new instance (and all the related entities)
//CustomerEntity clone = (CustomerEntity)formatter.Deserialize(stream);